package cn.tedu.oa.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.tedu.oa.common.dao.BaseDao;
import cn.tedu.oa.sys.entity.Department;

public interface DepartmentDao extends BaseDao<Department> {

	List<Department> findDepartmentByName(String deptName);

	List<Department> findDivisions(@Param("id") Integer... id);

	List<Department> getExceptId(@Param("id")Integer id);
	/**
	 * 分页查询用户信息
	 * @param criteria 查询条件
	 * @param startIndex 起始值
	 * @param endIndex 结束值
	 * @return 结果集合
	 */
	List<Department> getDepartmentPagerList(
			@Param("criteria") String criteria,
			@Param("startIndex") Integer startIndex,
			@Param("endIndex") Integer endIndex);

	int deletes(@Param("deleteUser")String deleteUser,@Param("id")Integer... id);
}
